<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('orders', function (Blueprint $table) {
            $table->id();
            $table->string('out_trade_no')->nullable()->comment('out_trade_no');
            $table->string('subject',100)->nullable()->comment('subject');
            $table->decimal('amount',10,2)->nullable()->comment('amount');
            $table->string('buyer_logon_id',100)->nullable()->comment('buyer_logon_id');
            $table->string('trade_status')->nullable()->comment('trade_status');
            $table->dateTime('payment_time')->nullable()->comment('payment_time');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('orders');
    }
};
